//
//  BaseModel.h
//  iShow
//
//  Created by zhaohong on 16/2/29.
//  Copyright © 2016年 zhaohong. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BaseModel : NSObject
//@property (nonatomic,copy)NSString *ret;//结果代码 1成功 0接口验证失败 -1渠道编码不存在
//@property (nonatomic,copy)NSString *tip;//结果描述



-(id)initWithDataDic:(NSDictionary*)data;//将字典转换为model
- (void)setAttributes:(NSDictionary*)dataDic;//键值对映射

- (NSDictionary*)attributeMapDictionary;
- (NSString *)customDescription;
- (NSString *)description;
- (NSData*)getArchivedData;

- (NSString *)cleanString:(NSString *)str;    //清除\n和\r的字符串

- (NSDictionary *)convertToDictionary;//转换为字典
@end
